package com.xjscrm.server.vo.device;

import lombok.Data;

/**
 * 机器人基本信息
 * @author liuqi
 * @date 2024年03月07日 15:57
 */
@Data
public class Device {
    //机器人唯一id
    private Long id;
    //运营商id
    private Long merId;
    //机器人类型
    private Integer deviceType;
    //机器人设备id
    private String deviceId;
    //机器人唯一id
    private Long deviceUniqueId;
    //企业id
    private String corpId;
    //机器人昵称
    private String deviceName;

    public Long getDeviceUniqueId() {
        if(deviceUniqueId == null){
            deviceUniqueId = this.getId();
        }
        return deviceUniqueId;
    }

    public void setDeviceUniqueId(Long deviceUniqueId) {
        this.deviceUniqueId = deviceUniqueId;
    }
}
